package com.theme.common.third.apple.bean;

/**
 * @name: JwsPayload <tb>
 * @title: 请输入类描述  <tb>
 * @author: cuixinfu@51play.com <tb>
 * @date: 2021/10/25 10:00:53 <tb>
 */
public class JwsPayload {
    /**
     * {
     *     "iss":"https://appleid.apple.com",
     *     "aud":"io.github.0xa6a",
     *     "exp":1581854624,
     *     "iat":1581854024,
     *     "sub":"001472.dab04f9ba9d34f03ad641fa82d1c598b.0945",
     *     "nonce":"a-random -string",
     *     "c_hash":"cZay7wqnmHuPcG6FhVDqZA",
     *     "email":"yf7a3ps8hm91@privaterelay.appleid.com",
     *     "email_verified":"true",
     *     "is_private_email":"true", 是否为 private email
     *     "auth_time":1581854024     email 授权时间
     * }
     */
    /** 签发机构网址 */
    private String iss;
    /** user id */
    private String sub;
    /**  bundle id */
    private String aud;
    /** int 过期时间戳 */
    private long exp;
    /** 签发时间 */
    private long iat;
    /** 客户端发出请求时携带的随机串，用于对照 */
    private String nonce;
    /** email */
    private String email;
    /** email 是否确认了 */
    private boolean email_verified;

    public final static String ISS = "https://appleid.apple.com";

    public String getIss() {
        return iss;
    }
    public void setIss(String iss) {
        this.iss = iss;
    }
    public String getSub() {
        return sub;
    }
    public void setSub(String sub) {
        this.sub = sub;
    }
    public String getAud() {
        return aud;
    }
    public void setAud(String aud) {
        this.aud = aud;
    }
    public long getExp() {
        return exp;
    }
    public void setExp(long exp) {
        this.exp = exp;
    }
    public long getIat() {
        return iat;
    }
    public void setIat(long iat) {
        this.iat = iat;
    }
    public String getNonce() {
        return nonce;
    }
    public void setNonce(String nonce) {
        this.nonce = nonce;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public boolean isEmail_verified() {
        return email_verified;
    }
    public void setEmail_verified(boolean email_verified) {
        this.email_verified = email_verified;
    }
}
